/*
 * TrackerMessenger.cc
 *
 *  Created on: 16.02.2011
 *      Author: ed
 */

#include "TrackerMessenger.hh"

TrackerMessenger::TrackerMessenger(TrackerSD* aTrackerSD) : trackerSD(aTrackerSD)
{
	dir = new G4UIdirectory("/task2/");
	cmd = new G4UIcmdWithoutParameter("/task2/show",this);

}

TrackerMessenger::~TrackerMessenger()
{
	delete dir;
	delete cmd;
}
void TrackerMessenger::SetNewValue(G4UIcommand* command,G4String )
{
	if(command==cmd)
	{
		trackerSD->DrawHist();
	}
}
